package com.hxzy.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.entity.system.CityArea;
import com.hxzy.vo.CityAreaTreeVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 县市区
 * @author Administrator
 */
@Mapper
public interface CityAreaMapper extends BaseMapper<CityArea> {


    CityArea selectByPrimaryKey(String areaCode);

    /**
     * 根据城市编号加载本身以及它的子节点数据
     * @param parentAreaCode
     * @return
     */
    CityAreaTreeVO selectByParentAreaCode(String parentAreaCode);

}